package com.ds.log;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * 〈〉
 */
@RestController
public class aaa {

    @GetMapping("/aa")
    public String aa(String id, HttpServletRequest request) {
        request.getSession(true);
        request.getSession().setAttribute("aa", "qq");
        return "ok";
    }

    @GetMapping("/bb")
    public String bb(String id) {
        return "ok1";
    }
}
